﻿@model ElCharro01.Models.ChangePasswordModel

@{
    ViewBag.Title = "Change Password";
}

<h2>Cambio Password</h2>
<p>
   Usa il form sottostante per cambiare la tua password
</p>
<p>
    La nuova password deve avere una lungezza minima di: @ViewBag.PasswordLength caratteri.
</p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true, "Password change was unsuccessful. Please correct the errors and try again.")
    <div>
        <fieldset>
            <legend>Informazioni Password</legend>

            <div class="editor-label">
               Password Corrente
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.OldPassword)
                @Html.ValidationMessageFor(m => m.OldPassword)
            </div>

            <div class="editor-label">
                Nuova Password
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.NewPassword)
                @Html.ValidationMessageFor(m => m.NewPassword)
            </div>

            <div class="editor-label">
                Conferma Nuova Password
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.ConfirmPassword)
                @Html.ValidationMessageFor(m => m.ConfirmPassword)
            </div>

            <p>
                <input type="submit" value="Cambia Password" />
            </p>
        </fieldset>
    </div>
}
